<script>
	import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
	export default {
		onLaunch: async () => {
			// #ifdef APP
			// 尝试更新
			uni.showToast({
				title: '检查更新'
			})
			const result = await checkUpdate();
			uni.showToast({
				title: JSON.stringify(result.code)
			})
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
